package org.neuedu.ssmp.crm.service;

import org.apache.ibatis.annotations.Param;
import org.neuedu.ssmp.crm.entity.SysRole;
import org.neuedu.ssmp.crm.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MoonHolder
 * @since 2019-12-09
 */
public interface ISysUserService extends IService<SysUser> {
    List<SysUser> lists();
    SysUser login(@Param("name") String name, @Param("pwd") String pwd);
    SysRole select(@Param("id") Integer id ,@Param("name") String name);
    List<SysUser> show();

    boolean deleteById(int id);

    List<SysUser> exist(String username);
}
